package org.xi.maple.sink;

import org.xi.maple.api.SinkConfig;

import java.util.List;
import java.util.Map;

public class JdbcConfig extends SinkConfig {
    private String saveMode;
    private String url;
    private String driver;
    private String targetTable;
    private String user;
    private String password;
    private List<String> preQueries;
    private Integer numPartitions;
    private Map<String, String> options;

    public String getSaveMode() {
        return saveMode;
    }

    public void setSaveMode(String saveMode) {
        this.saveMode = saveMode;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    public String getTargetTable() {
        return targetTable;
    }

    public void setTargetTable(String targetTable) {
        this.targetTable = targetTable;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public List<String> getPreQueries() {
        return preQueries;
    }

    public void setPreQueries(List<String> preQueries) {
        this.preQueries = preQueries;
    }

    public Integer getNumPartitions() {
        return numPartitions;
    }

    public void setNumPartitions(Integer numPartitions) {
        this.numPartitions = numPartitions;
    }

    public Map<String, String> getOptions() {
        return options;
    }

    public void setOptions(Map<String, String> options) {
        this.options = options;
    }
}
